3.3094 \(\int (a+b x)^m (c+d x)^{1-m} (e+f x)^p \, dx\)

Optimal. Leaf size=131 \[ \frac{(b c-a d) (a+b x)^{m+1} (c+d x)^{-m} (e+f x)^p \left (\frac{b (c+d x)}{b c-a d}\right )^m \left (\frac{b (e+f x)}{b e-a f}\right )^{-p} F_1\left (m+1;m-1,-p;m+2;-\frac{d (a+b x)}{b c-a d},-\frac{f (a+b x)}{b e-a f}\right )}{b^2 (m+1)} \]

[Out]

((b*c - a*d)*(a + b*x)^(1 + m)*((b*(c + d*x))/(b*c - a*d))^m*(e + f*x)^p*AppellF
1[1 + m, -1 + m, -p, 2 + m, -((d*(a + b*x))/(b*c - a*d)), -((f*(a + b*x))/(b*e -
 a*f))])/(b^2*(1 + m)*(c + d*x)^m*((b*(e + f*x))/(b*e - a*f))^p)

_______________________________________________________________________________________

Rubi [A]  time = 0.357873, antiderivative size = 131, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115 \[ \frac{(b c-a d) (a+b x)^{m+1} (c+d x)^{-m} (e+f x)^p \left (\frac{b (c+d x)}{b c-a d}\right )^m \left (\frac{b (e+f x)}{b e-a f}\right )^{-p} F_1\left (m+1;m-1,-p;m+2;-\frac{d (a+b x)}{b c-a d},-\frac{f (a+b x)}{b e-a f}\right )}{b^2 (m+1)} \]

Antiderivative was successfully verified.

[In]  Int[(a + b*x)^m*(c + d*x)^(1 - m)*(e + f*x)^p,x]

[Out]

((b*c - a*d)*(a + b*x)^(1 + m)*((b*(c + d*x))/(b*c - a*d))^m*(e + f*x)^p*AppellF
1[1 + m, -1 + m, -p, 2 + m, -((d*(a + b*x))/(b*c - a*d)), -((f*(a + b*x))/(b*e -
 a*f))])/(b^2*(1 + m)*(c + d*x)^m*((b*(e + f*x))/(b*e - a*f))^p)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 75.3091, size = 104, normalized size = 0.79 \[ - \frac{\left (\frac{b \left (- c - d x\right )}{a d - b c}\right )^{m} \left (\frac{b \left (- e - f x\right )}{a f - b e}\right )^{- p} \left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m} \left (e + f x\right )^{p} \left (a d - b c\right ) \operatorname{appellf_{1}}{\left (m + 1,- p,m - 1,m + 2,\frac{f \left (a + b x\right )}{a f - b e},\frac{d \left (a + b x\right )}{a d - b c} \right )}}{b^{2} \left (m + 1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((b*x+a)**m*(d*x+c)**(1-m)*(f*x+e)**p,x)

[Out]

-(b*(-c - d*x)/(a*d - b*c))**m*(b*(-e - f*x)/(a*f - b*e))**(-p)*(a + b*x)**(m +
1)*(c + d*x)**(-m)*(e + f*x)**p*(a*d - b*c)*appellf1(m + 1, -p, m - 1, m + 2, f*
(a + b*x)/(a*f - b*e), d*(a + b*x)/(a*d - b*c))/(b**2*(m + 1))

_______________________________________________________________________________________

Mathematica [B]  time = 1.38122, size = 298, normalized size = 2.27 \[ \frac{(m+2) (b c-a d) (b e-a f) (a+b x)^{m+1} (c+d x)^{1-m} (e+f x)^p F_1\left (m+1;m-1,-p;m+2;\frac{d (a+b x)}{a d-b c},\frac{f (a+b x)}{a f-b e}\right )}{b (m+1) \left ((m+2) (b c-a d) (b e-a f) F_1\left (m+1;m-1,-p;m+2;\frac{d (a+b x)}{a d-b c},\frac{f (a+b x)}{a f-b e}\right )-(a+b x) \left (f p (a d-b c) F_1\left (m+2;m-1,1-p;m+3;\frac{d (a+b x)}{a d-b c},\frac{f (a+b x)}{a f-b e}\right )+d (m-1) (b e-a f) F_1\left (m+2;m,-p;m+3;\frac{d (a+b x)}{a d-b c},\frac{f (a+b x)}{a f-b e}\right )\right )\right )} \]

Warning: Unable to verify antiderivative.

[In]  Integrate[(a + b*x)^m*(c + d*x)^(1 - m)*(e + f*x)^p,x]

[Out]

((b*c - a*d)*(b*e - a*f)*(2 + m)*(a + b*x)^(1 + m)*(c + d*x)^(1 - m)*(e + f*x)^p
*AppellF1[1 + m, -1 + m, -p, 2 + m, (d*(a + b*x))/(-(b*c) + a*d), (f*(a + b*x))/
(-(b*e) + a*f)])/(b*(1 + m)*((b*c - a*d)*(b*e - a*f)*(2 + m)*AppellF1[1 + m, -1
+ m, -p, 2 + m, (d*(a + b*x))/(-(b*c) + a*d), (f*(a + b*x))/(-(b*e) + a*f)] - (a
 + b*x)*((-(b*c) + a*d)*f*p*AppellF1[2 + m, -1 + m, 1 - p, 3 + m, (d*(a + b*x))/
(-(b*c) + a*d), (f*(a + b*x))/(-(b*e) + a*f)] + d*(b*e - a*f)*(-1 + m)*AppellF1[
2 + m, m, -p, 3 + m, (d*(a + b*x))/(-(b*c) + a*d), (f*(a + b*x))/(-(b*e) + a*f)]
)))

_______________________________________________________________________________________

Maple [F]  time = 0.229, size = 0, normalized size = 0. \[ \int \left ( bx+a \right ) ^{m} \left ( dx+c \right ) ^{1-m} \left ( fx+e \right ) ^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((b*x+a)^m*(d*x+c)^(1-m)*(f*x+e)^p,x)

[Out]

int((b*x+a)^m*(d*x+c)^(1-m)*(f*x+e)^p,x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m + 1}{\left (f x + e\right )}^{p}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x + a)^m*(d*x + c)^(-m + 1)*(f*x + e)^p,x, algorithm="maxima")

[Out]

integrate((b*x + a)^m*(d*x + c)^(-m + 1)*(f*x + e)^p, x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left ({\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m + 1}{\left (f x + e\right )}^{p}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x + a)^m*(d*x + c)^(-m + 1)*(f*x + e)^p,x, algorithm="fricas")

[Out]

integral((b*x + a)^m*(d*x + c)^(-m + 1)*(f*x + e)^p, x)

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x+a)**m*(d*x+c)**(1-m)*(f*x+e)**p,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m + 1}{\left (f x + e\right )}^{p}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x + a)^m*(d*x + c)^(-m + 1)*(f*x + e)^p,x, algorithm="giac")

[Out]

integrate((b*x + a)^m*(d*x + c)^(-m + 1)*(f*x + e)^p, x)